package expressions.slogo;

import parsing.Token;

/**
 * Holds a decimal numerical constant parsed as a Double.
 */
@Token(regex = "[0-9]+(\\.[0-9]+)?")
public class Constant extends expressions.Constant<Double>
{

    public Constant(String token)
    {
        super(token);
    }

    @Override
    protected Double parseToken(String token)
    {
        return Double.parseDouble(token);
    }

}
